package com.cn.thread.common;


public class Consumer extends Thread {
    private BufferResources bufferResources;

    //构造时需要指定缓冲区
    public Consumer(BufferResources BufferResources) {
        this.bufferResources = BufferResources;
    }

    @Override
    public void run() {
        this.bufferResources.consume();
    }
}
